﻿using DirectService.Server.Com.ROS;
using LJLib.Net.SPI.Com;

namespace DirectService.Server.Com.taobao
{
    /// <summary>
    /// TODO: 绑定客体
    /// </summary>
    public sealed class BindCopyRequest : ITokenRequest<BindCopyResponse>
    {
        /// <summary>
        /// 门店主体token
        /// </summary>
        public string token { get; set; }
        /// <summary>
        /// 客体登录名，工厂提供的用户名
        /// </summary>
        public string usercode { get; set; }
        /// <summary>
        /// 客体登录密码，工厂提供的用户名
        /// </summary>
        public string psw { get; set; }
        /// <summary>
        /// 绑定类型：0-供应商(usercode为供应商) 1-客户(usercode为客户)
        /// 工厂作为供应商，这里传入0
        /// </summary>
        public byte bindtype { get; set; }
        /// <summary>
        /// 供应商编号或客户编号
        /// 门店对工厂的编码
        /// </summary>
        public string relcode { get; set; }

        public string GetApiName()
        {
            return "BindCopy";
        }
    }

    public sealed class BindCopyResponse : LJResponse
    {
        
    }
}
